package com.rc.saas.mini.service.enterprise;

import com.github.pagehelper.PageInfo;
import com.rc.saas.mini.common.base.BaseService;
import com.rc.saas.mini.common.base.TResponse;
import com.rc.saas.mini.mapper.enterprise.EnterpriseSubmemberApplyMapper;
import com.rc.saas.mini.model.enterprise.EnterpriseSubmemberApply;
import com.rc.saas.mini.model.enterprise.EnterpriseSubmemberApplyExample;

/**
 * @author wangzhengwei
 * @create 2021/4/25
 */
public interface EnterpriseSubmemberApplyService extends BaseService<Long, EnterpriseSubmemberApply, EnterpriseSubmemberApplyExample, EnterpriseSubmemberApplyMapper> {
    EnterpriseSubmemberApply selectBySubMemberId(Long subMemberId, String tenantCode);

    PageInfo<EnterpriseSubmemberApply> listPageByEntMember(String tenantCode, Long entMemberId,String keyWord, Integer pageNo, Integer pageSize);

    TResponse updateSubApply(String tenantCode, Long memberId, Long aprId, String status);

    void insertByReturnId(EnterpriseSubmemberApply enterpriseSubmemberApply);
}
